package com.sjr.easy.chat;

import com.sjr.easy.chat.app.EasyChatAppConfig;
import com.sjr.easy.chat.app.config.WebSocketConfig;
import com.sjr.easy.chat.config.TraceRabbitMQConfiguration;
import com.sjr.easy.chat.config.TraceWebServletConfiguration;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Import;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
@Import(value = {
        TraceWebServletConfiguration.class,
        TraceRabbitMQConfiguration.class,
        WebSocketConfig.class
})
@EnableConfigurationProperties({
        EasyChatServerConfig.class,
        EasyChatAppConfig.class
})
@EnableScheduling
public class EasyChatServer {

    public static void main(String[] args) {
        SpringApplication.run(EasyChatServer.class, args);
    }

}
